﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;

namespace WeLinkHelper.Untils.Ext
{
    public static class StringExtensions
    {
        public static string Reverse(this string str)
        {
            char[] chars = str.ToCharArray();
            Array.Reverse(chars);
            return new string(chars);
        }

        public static string ReplaceAll(this string str,String oldValue, String newValue)
        {
            return Regex.Replace(str,oldValue, newValue);
        }
    }
}
